.class Les/vf0$b;
.super Ljava/lang/Object;
.source "RunDialog.java"

# interfaces
.implements Lcom/jecelyin/common/widget/dialog/a$d;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/vf0;->a(Ljava/io/File;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/util/List;

.field final synthetic b:Ljava/io/File;

.field final synthetic c:Les/vf0;


# direct methods
.method constructor <init>(Les/vf0;Ljava/util/List;Ljava/io/File;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/vf0$b;->c:Les/vf0;

    iput-object p2, p0, Les/vf0$b;->a:Ljava/util/List;

    iput-object p3, p0, Les/vf0$b;->b:Ljava/io/File;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/jecelyin/common/widget/dialog/a;ILcom/jecelyin/common/widget/dialog/vh/AbstractDialogViewHolder;Lcom/jecelyin/common/widget/dialog/DialogListAdapter$b;)V
    .locals 1

    .line 1
    invoke-virtual {p1}, Landroid/app/Dialog;->cancel()V

    .line 2
    iget-object p1, p0, Les/vf0$b;->a:Ljava/util/List;

    invoke-interface {p1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/content/pm/ResolveInfo;

    .line 3
    iget-object p1, p1, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object p2, p1, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    .line 4
    iget-object p1, p1, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;

    .line 5
    new-instance p3, Landroid/content/Intent;

    iget-object p4, p0, Les/vf0$b;->b:Ljava/io/File;

    invoke-static {p4}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object p4

    const-string v0, "android.intent.action.VIEW"

    invoke-direct {p3, v0, p4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 6
    new-instance p4, Landroid/content/ComponentName;

    invoke-direct {p4, p2, p1}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p3, p4}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    .line 7
    :try_start_0
    iget-object p1, p0, Les/vf0$b;->c:Les/vf0;

    invoke-virtual {p1}, Les/nf0;->b()Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    move-result-object p1

    invoke-virtual {p1, p3}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 8
    invoke-static {p1}, Lcom/jecelyin/common/utils/c;->a(Ljava/lang/Throwable;)I

    .line 9
    iget-object p1, p0, Les/vf0$b;->c:Les/vf0;

    iget-object p1, p1, Les/nf0;->a:Landroid/content/Context;

    sget p2, Lcom/jecelyin/editor/v2/m;->je_run_fail_message:I

    invoke-static {p1, p2}, Lcom/jecelyin/common/utils/e;->b(Landroid/content/Context;I)V

    :goto_0
    return-void
.end method
